<?php 
use \PsiFramework\Classes\Util\UI\Printer;
use \PsiFramework\Classes\Util\UI\HTML;

$identification = $response->getAttribute("identification");

if (!is_null($identification) && !is_null($identification->getError())) {
?>
<div id="error">
    <?php Printer::display($identification->getError());  ?>
</div>
<?php 
}
?>
<form
    class="editForm"
    action="<?php Printer::display(HTML::linkHref('action=Authenticate'));?>"
    method="post">
    <?php
    if ($response->getAttribute("redirect") != null) {
    ?>
    <input
        type="hidden"
        name="redirect"
        value="<?php Printer::display($response->getAttribute("redirect")); ?>" />
    <?php
    }
    ?>
    <ul>
        <li>
            <label for="loginBox">
                <?php Printer::display($languageManager->getText('LOGIN_NAME')); ?>
            </label>
            <input
                type="text"
                name="login"
                id="loginBox"
                value="<?php if ($identification !== null) Printer::display($identification->getLogin());  ?>" />
        </li>
        <li>
            <label for="passwordBox">
                <?php Printer::display($languageManager->getText('PASSWORD')); ?>
            </label>
            <input
                type="password"
                name="password"
                id="passwordBox"
                value="" />
        </li>
    </ul>
    <div id="bouton">
        <input
            name="submit"
            id="submit"
            type="submit"
            value="<?php Printer::display(strtoupper($languageManager->getText('LOGIN'))); ?>">
    </div>
</form>
